import request from '@/utils/request'
export default class index {
    static getBanners(query: any) {
        return request({
            url: 'api/banners/lists',
            method: 'get',
            params: query
        })
    }
    
    static deleteBanner(data: any) {
        return request({
            url: `api/banners/delete`,
            method: 'post',
            data
        })
    }
    
    static addBanner(data: any) {
        return request({
            url: 'api/banners/add',
            method: 'post',
            data
        })
    }
    
    static updateBanner(data: any) {
        return request({
            url: `api/banners/update`,
            method: 'post',
            data
        })
    }
    // 背景墙列表
    static getRoomBackList(params: any) {
        return request({
            url: 'api/room_background_picture_management/get_list',
            method: 'get',
            params
        })
    }
    // 背景墙列表 删除
    static roomBackDel(data: any) {
        return request({
            url: 'api/room_background_picture_management/delete',
            method: 'post',
            data
        })
    }
    // 背景墙列表 新增
    static roomBackAdd(data: any) {
        return request({
            url: 'api/room_background_picture_management/add',
            method: 'post',
            data
        })
    }
    // 背景墙列表 编辑
    static roomBackUpdate(data: any) {
        return request({
            url: 'api/room_background_picture_management/update',
            method: 'post',
            data
        })
    }
    // 背景墙展示位置
    static getBackPageTypes() {
        return request({
            url: 'api/room_background_picture_management/get_types',
            method: 'get',
        })
    }
    // 飘屏列表
    static screenList() {
        return request({
            url: 'api/full/list',
            method: 'get',
        })
    }
    // 背景墙展示位置
    static getScreenPage() {
        return request({
            url: 'api/full/get_full_page',
            method: 'get',
        })
    }
    // 新增飘屏
    static screenListAdd(data: any) {
        return request({
            url: 'api/full/add',
            method: 'post',
            data
        })
    }
    // 修改飘屏详情
    static screenListEdit(data: any) {
        return request({
            url: '/api/full/edit',
            method: 'post',
            data
        })
    }
    // 删除飘屏
    static screenListDel(data: any) {
        return request({
            url: 'api/full/del',
            method: 'post',
            data
        })
    }
    // 快捷语列表
    static listShortcutWord(params:any) {
        return request({
            url: 'api/system/listShortcutWord',
            method: 'get',
            params
        })
    }
    // 添加快捷语
    static addShortcutWord(data: any) {
        return request({
            url: 'api/system/addShortcutWord',
            method: 'post',
            data
        })
    }
    // 编辑快捷语
    static editShortcutWord(data: any) {
        return request({
            url: 'api/system/editShortcutWord',
            method: 'post',
            data
        })
    }
    // 删除快捷语
    static delShortcutWord(data: any) {
        return request({
            url: 'api/system/delShortcutWord',
            method: 'post',
            data
        })
    }
}
